package com.swa99ylum.pjv.validator;

import java.util.Map;

import com.swa99ylum.pjv.exception.JSONValidateException;


/** <h1>假 验证器</h1>
<br> 不进行任何验证，直接 抛出异常
<br> 
<br>    
 */
public class FakeValidator extends Validator {
	private String[] nodePath;
	private Object value;
	private String desc;

	
	public FakeValidator(String[] nodePath, Object value, String desc) {
		super();
		this.nodePath = nodePath;
		this.value = value;
		this.desc = desc;
	}


	@Override
	public void doValidate(Object rootObject, String[] nodePath, String nodeName, Map<String, Object> parentValue, Object value) throws JSONValidateException {
		throw new JSONValidateException(this.nodePath, this.value, this.desc);
	}

}
